﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Resource
{
    public class CreateResourceCommand : IRequest<Result>
    {
        /// <summary>
        /// 资源编码(雪花id)
        /// </summary>
        public string? ResourceCode { get; set; }
        /// <summary>
        /// 资源名称
        /// </summary>
        public string ResourceName { get; set; }
        /// <summary>
        /// 可用数量
        /// </summary>
        public int ResourceNumber { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Abstract { get; set; }
        /// <summary>
        /// 状态 1-有效；2-无效
        /// </summary>
        public int ResourceState { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-已删除
        /// </summary>
        public int IsResource { get; set; }
        /// <summary>
        /// 工作中心编码
        /// </summary>
        public string WorkCenterCode { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
